package ac.you.api.ask.e;

import java.util.function.Predicate;

public final class ExCondition {
    public Predicate<Tasker> condition;
    public Runnable fail;

    private ExCondition(Predicate<Tasker> excondition, Runnable fail) {
        this.condition = excondition;
        this.fail = fail;
    }
    public static ExCondition build(Predicate<Tasker> excondition, Runnable fail){
        return new ExCondition(excondition,fail);
    }
}
